import request from '@/router/axios'; // 报告跟踪

// 列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/hg-quality/supplierrectifyreporttrack/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

// 确认
export const submit = (data) => {
  return request({
    url: `/api/hg-quality/supplierrectifyreporttrack/update`,
    method: "post",
    data: data
  });
};

// 详情
export const detail = id => {
  return request({
    url: `/api/hg-quality/supplierrectifyreporttrack/detail`,
    method: "get",
    params: {
      id
    }
  });
};

// 详情
export const getMapsInfo = (supplierId,year,month) => {
  return request({
    url: `/api/hg-quality/suppliercheckachieve/detail`,
    method: "get",
    params: {
      supplierId,
      year,
      month
    }
  });
};
